package cn.emove.modular.system.mapper;

import cn.emove.modular.system.entity.TicketEntity;
import cn.emove.modular.system.model.TicketModel;
import cn.stylefeng.roses.core.datascope.DataScope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TicketMapper extends BaseMapper<TicketEntity> {
    /**
     * 根据条件查询工单列表
     */
    Page<Map<String, Object>> selectTickets(@Param("page") Page page, @Param("dataScope") DataScope dataScope, @Param("orderNo") String orderNo, @Param("orderSource") int orderSource, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("contactName") String contactName, @Param("shopName") String shopName, @Param("shopAdr") String shopAdr, @Param("type") String type, @Param("userId") String userId, @Param("describes") String describes, @Param("repairType") String repairType);

    List<TicketModel> selectAllTicket(@Param("orderSource") int orderSource, @Param("orderNo") String orderNo, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("contactName") String contactName, @Param("shopName") String shopName, @Param("shopAdr") String shopAdr, @Param("type") String type, @Param("describes") String describes, @Param("repairType") String repairType);

    List<TicketModel> selectNewTickets();
}
